<%@ page language="java" contentType="text/html;charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1"><!--移动设备优先-->
	<title>机构信息</title>
	<style type="text/css">@import url("<c:url value="/css/lib/bootstrap.min.css?V1.0.1"/>");</style>
	<style type="text/css">@import url("<c:url value="/css/lib/V2.0/weknow.css"/>");</style>
	<style type="text/css">@import url("<c:url value="/css/lib/font-awesome.min.css"/>");</style>
	<style type="text/css">@import url("<c:url value="/css/lib/boxImg.css?V1.0.0"/>");</style>
	<style type="text/css">
		tbody->td{
			vertical-align: middle;
		}

		#tbodyInstitutionList td .dropdown-menu{
			min-width: unset!important;
		}
		#occupationalLicenceStyle{
			margin-left: 20px;
		}
	</style>
</head>
<body>
<!-- Preloader -->
<div class="animationload">
	<div class="loader">
		Loading...
	</div>
</div>

<!-- End Preloader -->
<div class="container-fluid">
	<input type="hidden" id="institutionId">
	<input type="file" style="display:none;" id="tempFile">
	<!-- 机构信息 -->
	<section id="main_page"  class="toggle-input toggle_doctot_register_info" >
		<!-- 头部信息 -->
		<div class="row">
			<div class="col-xs-8 text-left">
				<div class="form-inline">
					<div class="form-group">
						机构监管状态
						<div class="input-group">
							<select name="underInvs" class="form-control">
								<option value="9">全部</option>
								<option value="0">未监管</option>
								<option value="1">监管中</option>
							</select>
<%--							<label class="radio-inline">--%>
<%--								<input type="radio" name="underInvs" checked value="9">全部--%>
<%--							</label>--%>
<%--							<label class="radio-inline">--%>
<%--								<input type="radio" name="underInvs" value="0">未监管--%>
<%--							</label>--%>
<%--							<label class="radio-inline">--%>
<%--								<input type="radio" name="underInvs" value="1">监管中--%>
<%--							</label>--%>
						</div>
					</div>
					<div class="form-group">
						处方监管状态
						<div class="input-group">
							<select name="prescriptionInvs" class="form-control">
								<option value="9">全部</option>
								<option value="0">未监管</option>
								<option value="1">监管中</option>
							</select>
						</div>
					</div>

					<div class="form-group" id="occupationalLicenceStyle">
						执照是否过期
						<div class="input-group">
							<select name="occupationalLicenceStatus" class="form-control">
								<option value="9">全部</option>
								<option value="0">已过期</option>
								<option value="1">未过期</option>
								<option value="2">无执照过期时间</option>
							</select>
<%--							<label class="radio-inline">--%>
<%--								<input type="radio" name="occupationalLicenceStatus" checked value="9">全部--%>
<%--							</label>--%>
<%--							<label class="radio-inline">--%>
<%--								<input type="radio" name="occupationalLicenceStatus" value="0">已过期--%>
<%--							</label>--%>
<%--							<label class="radio-inline">--%>
<%--								<input type="radio" name="occupationalLicenceStatus" value="1">未过期--%>
<%--							</label>--%>
<%--							<label class="radio-inline">--%>
<%--								<input type="radio" name="occupationalLicenceStatus" value="2">无执照--%>
<%--							</label>--%>
						</div>
					</div>

                    <div class="form-group">
                        医疗机构类型
                        <div class="input-group">
                            <select name="institutionTypeFirstScreen" class="form-control">
                                <option value="">全部</option>
                                <c:forEach var="a" items="${typeFirstList}">
                                    <option value="${a.value}">${a.fullName}</option>
                                </c:forEach>
                            </select>
                        </div>
                    </div>

                    <%--<div class="form-group">--%>
                        <%--二级类别--%>
                        <%--<div class="input-group">--%>
                            <%--<select name="institutionTypeSecondScreen" class="form-control">--%>
                                <%--<option value="" class="first_all">全部</option>--%>
                                <%--<c:forEach var="a" items="${typeSecondList}">--%>
                                    <%--<option value="${a.value}" class="first_${a.parentCategoryValue}">${a.fullName}</option>--%>
                                <%--</c:forEach>--%>
                            <%--</select>--%>
                        <%--</div>--%>
                    <%--</div>--%>

				</div>
			</div>
			<div class="col-xs-4 text-right">
				<div class="form-inline">
					<div class="form-group">
						医疗机构
						<div class="input-group">
							<input type="text" class="form-control" style="ime-mode:inactive" id="institutionName" autocomplete="off">
						</div>
					</div>
					<div class="form-group">
						<div class="input-group">
							<button type="button" id="search" class="btn btn-primary"  style="width:90px;">搜索</button>
						</div>
					</div>
				</div>
			</div>
		</div>
		<div class="row" style="padding-left:0px;">
			<div class="col-xs-12">
				<table class="table table-condensed table-hover table-bordered">
					<thead>
					<tr>
						<th class="text-center" style="width:10%;">医疗机构</th>
						<th class="text-center" style="width:4%;">监管状态</th>
						<th class="text-center" style="width:4%;">处方监管状态</th>
						<th class="text-center" style="width:4%;">机构属性</th>
						<th class="text-center" style="width:5%;">机构类型一级类目</th>
						<th class="text-center" style="width:5%;">机构类型二级类目</th>
						<th class="text-center" style="width:10%;">医疗机构地址</th>
						<th class="text-center" style="width:5%;">负责人</th>
						<th class="text-center" style="width:6%;">联系电话</th>
						<th class="text-center" style="width:3%;">医生人数</th>
						<th class="text-center" style="width:5%;">医生名字</th>
						<th class="text-center" style="width:8%;">营业执照</th>
						<th class="text-center" style="width:8%;">执业范围</th>
						<th class="text-center" style="width:8%;">执照过期日</th>
						<th class="text-center" style="width:8%;">执业许可证</th>
						<th class="text-center" style="width:6%;">操作</th>
					</tr>
					</thead>
					<tbody id="tbodyInstitutionList">
					</tbody>
				</table>
			</div>
		</div>
	</section>

	<!-- 医生备案信息显示区 -->
	<section id="doctot_register_info" class="toggle_doctot_register_info" style="display:none;">
		<header style="border-bottom: 1px solid #F3F3F7; margin-bottom: 5px;">
			<div class="row">
				<div class="col-md-2">
					<h3 id="headTitle" style="margin-top: 10px; font-size: 20px;">
						<i class="fa fa-long-arrow-left backToWorkspace" style="color: #c5c5c5; border-right:1px solid #c5c5c5;padding-right: 5px;" id="Doctor"></i>
						<span style="margin-right:50px;">医生信息列表</span>
					</h3>
				</div>
				<div class="col-md-8 text-center">
					<h3><span id="institution_name_register_dis">医疗机构XXXX</span></h3>
				</div>
			</div>
		</header>

		<div class="row">
			<div class="col-xs-12 text-right" style="margin-top:15px;">
				<div class="form-inline">
					<div class="form-group">
						<div class="input-group">
							<input type="text" class="form-control" name="doctorName"></input>
						</div>
					</div>
					<div class="form-group">
						<div class="input-group">
							<button class="btn btn-default" name="searchDoctor">搜索</button>
						</div>
					</div>
				</div>
			</div>
		</div>

		<table class="table table-condensed table-hover table-bordered">
			<thead class="bg-default">
			<tr>
				<th width="6%" class="text-center">医师姓名</th>
				<th width="8%" class="text-center">电话</th>
				<th width="8%" class="text-center">职称</th>
				<th width="8%" class="text-center">执业范围</th>
				<th width="10%" class="text-center">身份证号</th>
				<th width="6%" class="text-center">抗菌药处方权</th>
				<th width="6%" class="text-center">精麻药处方权</th>
				<th width="6%" class="text-center">身份证</th>
				<th width="6%" class="text-center">医师资格证书</th>
				<th width="6%" class="text-center">医师执业证书</th>
				<th width="6%" class="text-center">操作</th>
			</tr>
			</thead>
			<tbody id="tbodyRegisterInfoDetailList"></tbody>
		</table>
	</section>

	<!-- 登记规则信息 -->
	<section id="registerSetHistory"  class="toggle-input" style="display:none;">
		<header style="border-bottom: 1px solid #F3F3F7; margin-bottom: 5px;">
			<div class="row">
				<div class="col-md-2">
					<h3 id="headTitle" style="margin-top: 10px; font-size: 20px;">
						<i class="fa fa-long-arrow-left backToWorkspace" style="color: #c5c5c5; border-right:1px solid #c5c5c5;padding-right: 5px;"></i>
						<span style="margin-right:50px;">监管规则</span>
					</h3>
				</div>
				<div class="col-md-8 text-center">
					<h3><span class="institution_name_register_dis">医疗机构XXXX</span></h3>
				</div>
			</div>
		</header>

		<table class="table table-condensed table-hover table-bordered" style="width: 80%;">
			<thead class="bg-default">
			<tr>
				<th width="15%" class="text-center">器械消毒</th>
				<th width="15%" class="text-center">场所消毒</th>
				<th width="15%" class="text-center">医疗废物</th>
				<th width="15%" class="text-center">余氯日检</th>
				<th width="15%" class="text-center">消毒器械检测报告</th>
				<th width="15%" class="text-center">污水检测报告</th>
			</tr>
			</thead>
			<tbody id="tbodyRegisterSetInfo"></tbody>
		</table>
		<div style="border-bottom: 1px solid black; position: absolute;width: 80%;">
			<div style="position: relative;top: 10px;margin-left: 30px;width: 60px;background-color: #f9f9f9 !important;">变更记录</div>
		</div>
		<br>
		<br>
		<table class="table table-condensed table-hover table-bordered" style="width: 80%;">
			<thead class="bg-default">
			<tr>
				<th width="20%" class="text-center">变更时间</th>
				<th width="20%" class="text-center">项目</th>
				<th width="20%" class="text-center">变更后状态</th>
				<th width="20%" class="text-center">备案人</th>
				<th width="20%" class="text-center">变更理由</th>
			</tr>
			</thead>
			<tbody id="tbodyRegisterSetHistory"></tbody>
		</table>
	</section>
</div>

<!-- 图片显示Modal -->
<div class="modal fade" tabindex="-1" role="dialog" id="showImageModal">
	<div class="modal-dialog  modal-lg" role="document">
		<div class="modal-content">
			<div class="modal-header">
				<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span></button>
				<h4 id="imageModalTitle" class="modal-title"></h4>
			</div>
			<div class="modal-body">
				<div class="row" style="padding-left:0px;">
					<div class="col-xs-12">
						<table class="table table-condensed table-hover table-bordered">
							<tbody id="tbodyImageList">
							</tbody>
						</table>
					</div>
				</div>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<div class="modal fade" id="editInstitutionInfo" tabindex="-1" role="dialog">
	<div class="modal-dialog">
		<div class="modal-content">
			<div class="modal-header" style="height: 50px;">
				<h4 class="modal-title">机构类型</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-xs-offset-1 col-xs-10 ">
						<div class="form-inline">
							<div class="form-group"style="width: 100%;">
								<input type="hidden" class="edit-institution-id">
								<table class="table table-bordered table-condensed"id="printTable">
									<thead style="background-color: #d9edf7;">
										<tr>
											<th width="40%" class="text-center" style="vertical-align: middle;">医疗机构</th>
											<th width="50%" class="text-center" style="vertical-align: middle;">机构类型</th>
										</tr>
									</thead>
									<tbody id="tbodyInstitutionType">
										<tr>
											<td width="40%" class="text-center" style="vertical-align: middle;" id="insName"></td>
											<td width="50%" class="text-center" style="vertical-align: middle;">
												<select id="institutionType" class="form-control" style="width: 100%;">
													<option value="1">西医诊所</option>
													<option value="101">中医诊所</option>
													<option value="102">中西医结合诊所</option>
													<option value="103">口腔诊所</option>
													<option value="2">医生</option>
													<option value="3">科室</option>
													<option value="4">医院</option>
													<option value="5">健康管理公司</option>
													<option value="6">医药公司</option>
													<option value="7">医疗器械</option>
													<option value="8">养老院</option>
													<option value="9">康复院</option>
													<option value="10">企业医务室</option>
													<option value="104">宠物医院</option>
													<option value="20">其他</option>
												</select>
											</td>
										</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<button type="button" class="btn btn-primary" id="save">保存</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>

<div class="modal fade" id="editInstitutionInfoLink" tabindex="-1" role="dialog">
	<div class="modal-dialog" style="width: 800px;">
		<div class="modal-content">
			<div class="modal-header" style="height: 50px;">
				<h4 class="modal-title">机构类型</h4>
			</div>
			<div class="modal-body">
				<div class="row">
					<div class="col-xs-offset-1 col-xs-10">
						<div class="form-inline">
							<div class="form-group"style="width: 100%;">
								<input type="hidden" class="edit-institution-id">
								<table class="table table-bordered table-condensed" id="printTableLink">
									<thead style="background-color: #d9edf7;">
									<tr>
										<th width="25%" class="text-center" style="vertical-align: middle;">医疗机构</th>
										<th width="15%" class="text-center" style="vertical-align: middle;">机构属性</th>
										<th width="20%" class="text-center" style="vertical-align: middle;">机构类型一级类目</th>
										<th width="20%" class="text-center" style="vertical-align: middle;">机构类型二级类目</th>
										<th width="20%" class="text-center" style="vertical-align: middle;">乡镇/街道</th>
									</tr>
									</thead>
									<tbody id="tbodyInstitutionTypeLink">
									<tr>
										<td class="text-center" style="vertical-align: middle;" id="insNameLink"></td>
										<td class="text-center" style="vertical-align: middle;">
											<select id="institutionAttr" class="form-control" style="width: 100%;">
												<option value="0">公立</option>
												<option value="1">民营</option>
											</select>
										</td>
										<td class="text-center" style="vertical-align: middle;">
											<select id="institutionTypeFirst" class="form-control" style="width: 100%;">
												<c:forEach var="a" items="${typeFirstList}">
													<option value="${a.value}">${a.fullName}</option>
												</c:forEach>
											</select>
										</td>
										<td class="text-center" style="vertical-align: middle;">
											<select id="institutionTypeSecond" class="form-control" style="width: 100%;">
												<c:forEach var="a" items="${typeSecondList}">
													<option value="${a.value}" class="first_${a.parentCategoryValue}">${a.fullName}</option>
												</c:forEach>
											</select>
										</td>
										<td class="text-center" style="vertical-align: middle;">
											<select id="townSelect" class="form-control" style="width: 100%;">
												<c:forEach var="a" items="${townList}">
													<option value="${a.townId}">${a.townName}</option>
												</c:forEach>
											</select>
										</td>
									</tr>
									</tbody>
								</table>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="modal-footer">
				<button type="button" class="btn btn-default" data-dismiss="modal">取消</button>
				<button type="button" class="btn btn-primary" id="saveLink">保存</button>
			</div>
		</div><!-- /.modal-content -->
	</div><!-- /.modal -->
</div>

<script src="<c:url value="/js/lib/jquery.min.js"/>" type="text/javascript"></script>
<script src="<c:url value="/js/lib/bootstrap.min.js"/>" type="text/javascript"></script>
<script src="<c:url value="/js/lib/weknow.js"/>" type="text/javascript"></script>
<script src="<c:url value="/js/lib/idcard-util.js?V0.0"/>" type="text/javascript"></script>
<script src="<c:url value="/plugins/jquery.fileDownload.js"/>" type="text/javascript"></script>
<script src="<c:url value="/js/pc/clinic_info/clinic_info.js?V1.2.6"/>" type="text/javascript"></script>

</body>
</html>

	